import request from '../utils/request';
import constant from '../constant/constant'
import qs from 'qs';

/**
 * 查询所有已验证技术列表
 */
export function getFinishedTechnologyTableData() {
    let option = {
        method: 'GET',
        headers: {
            "Content-Type": "application/x-www-form-urlencoded"
        },
        mode: "cors",
    }

    return request(constant.serverUrl + '/tvs/api/verification/applicant/completevertechnology/list', option)
}

/**
 * 根据技术编号查询供应商及技术详细信息
 */
export function searchDetailedInformationByTechnologyId(payload){
    let option = {
        method: 'POST',
        body: qs.stringify(payload),
        headers: {
		    "Content-Type": "application/x-www-form-urlencoded"
		},
		mode: "cors",
    } 

    return request(constant.serverUrl+'/tvs/api/verification/applicant/completevertechnology/verificationApplicationId',option)
}

/**
 * 查询当前技术供应商的其他验证技术
 */
export function getOtherTechnologyByUserId(payload){
    let option = {
        method: 'POST',
        body: qs.stringify(payload),
        headers: {
		    "Content-Type": "application/x-www-form-urlencoded"
		},
		mode: "cors",
    } 

    return request(constant.serverUrl+'/tvs/api/verification/applicant/completevertechnology/userId/list',option)
}